package jike.demo64;

/**
 * @param
 * @author oyz
 * @version 1.0.4
 * @description:TODO
 * @date 2023/6/13 22:38
 */
public class MarioStateMachine {

    private int score;
    private State currentState;

    public MarioStateMachine(){
        this.score = 0;
        this.currentState = State.SMALL;
    }

    public void obtainMushRoom(){
        if(currentState.equals(State.SMALL)){
            this.currentState = State.SUPER;
            this.score += 100;
        }
    }

    public void obtainCape(){

    }

    public void obtainFireFlower(){

    }

    public void meetMonster(){

    }


    public int getScore() {
        return score;
    }

    public State getCurrentState() {
        return currentState;
    }
}
